package com.sqx.modules.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("evaluate")
public class Evaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)

    @ApiModelProperty("id")
    private Long id;


    @ApiModelProperty("用户id")
    private Long userId;


    @ApiModelProperty("订单号")
    private String orderNumber;


    @ApiModelProperty("商户id")
    private Long shopId;


    @ApiModelProperty("商品id")
    private String goodsId;


    @ApiModelProperty("评价内容")
    private String evaluateMessage;


    @ApiModelProperty("评价内容")
    private String shopReplyMessage;


    @ApiModelProperty("评分")
    private Double score;


    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("总分数")
    @TableField(exist = false)
    private Double allScore;

    @ApiModelProperty("总评论数")
    @TableField(exist = false)
    private Integer Evaluatecount;

    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String avatar;


    public Evaluate() {}
}
